-------------------------------------------------------------------------------
      name:  <unnamed>
       log:  /homes/nber/jetson-dua57641/gruber-DUA57641/jetson-dua57641/ambula
> nce/replication/logs/specialization.log
  log type:  text
 opened on:  16 Jul 2024, 14:51:07

. 
. /****************************************************************************
> ***
> specialization.do
> 
> This code investigates specialization following litigation
> *****************************************************************************
> **/
. 
. qui {

. 
. ****************************
. * By pre-post civ
. preserve

. qui drop if mi(postciv)

. collapse (sum) ride (sum) at_ride, by(npi postciv)

. 
. qui drop if at_ride == 0

. qui gen share_at = at_ride/ride

. 
. twoway (hist share_at if postciv == 0, width(.02499999) start(0))(hist share_
> at if postciv == 1, width(.02499999) start(0) lcolor(black) fcolor(none)), yt
> i(Density) xti(Share of Rides for Non-Emergency Dialysis) graphregion(color(w
> hite)) bgcolor(white)  leg(order(1 "Pre-Civil Enforcement" 2 "Post-Civil Enfo
> rcement"))

. qui graph export "${outpath}Figure_A13a.pdf", replace // Figure A13a

. 
. restore

. 
. * By pre-post crim 
. preserve

. qui drop if mi(postcrim)

. collapse (sum) ride (sum) at_ride, by(npi postcrim)

. qui drop if at_ride == 0

. qui gen share_at = at_ride/ride 

. 
. twoway (hist share_at if postcrim == 0, width(.02499999) start(0)) (hist shar
> e_at if postcrim == 1, width(.02499999) start(0) lcolor(black) fcolor(none)),
>  yti(Density) xti(Share of Rides for Non-Emergency Dialysis) graphregion(colo
> r(white)) bgcolor(white) leg(order(1 "Pre-Criminal Enforcement" 2 "Post-Crimi
> nal Enforcement"))

. qui graph export "${outpath}Figure_A13b.pdf", replace // Figure A13b

. 
. restore

. 
. log close
      name:  <unnamed>
       log:  /homes/nber/jetson-dua57641/gruber-DUA57641/jetson-dua57641/ambula
> nce/replication/logs/specialization.log
  log type:  text
 closed on:  16 Jul 2024, 16:16:29
-------------------------------------------------------------------------------
